<template>
  <a-col class="banner">
    <a-col :span="24">
      <a-typography-title :heading="6">
        {{ $t("workplace.welcome") }} {{ userInfo.name || userInfo.username }}
      </a-typography-title>
    </a-col>
  </a-col>
</template>

<script lang="ts" setup>
import { computed } from "vue"
import { useUserStore } from "@/store"

const userStore = useUserStore()
const userInfo = computed(() => {
  return {
    name: userStore.name,
    username: userStore.username
  }
})
</script>

<style scoped lang="scss">
.banner {
  padding: 20px 20px 0;
  width: 100%;
  background-color: var(--color-bg-2);
  border-radius: 4px 4px 0 0;
}

:deep(.arco-icon-home) {
  margin-right: 6px;
}
:deep(.ant-typography) {
  font-size: 26px;
}
</style>
